/***
 * @Description
 * @Author: LI Yihong
 * @Email: liyh@jihua.ac.cn
 * @Date: 2025-02-24 13:57:17
 * @LastEditTime: 2025-02-24 13:57:17
 * @LastEditors: LI Yihong
 * @FilePath: \STM32F407_AD9910_Control\applications\AD9910\AD9910_Single_Tone.hpp
 */
#pragma once
#include "AD9910_Base.hpp"

class AD9910_Single_Tone : public AD9910_Base
{
public:
    AD9910_Single_Tone();
    AD9910_Single_Tone(const uint64_t freq, const uint16_t Amp);
    ~AD9910_Single_Tone();

    void setDefaultCFR() override;
    void setFreq(const uint64_t freq);
    void setAmp(const uint16_t Amp);
    void sendProfile();

private:
    // 振幅[61:48], 相位[47:32], 频率[31:0]
    std::vector<uint8_t> profile = {0x3f, 0xff, 0x00, 0x00, 0x25, 0x09, 0x7b, 0x42};
};
